package com.cn.xiaonuo.modular.utlis;

import java.math.BigDecimal;

/**
 * @author Don
 * @Description 优化key长度，减少内存空间
 * @date 2019/7/5 21:42
 * @Version 1.0
 */

public class RedisKeyContants {
	/** redis默认数据超时时间，3秒 */
	public static final long REDIS_OUT_TIME = 3;
	
    //2020-2-13 修改 案例保存顺序 itemId+shopId
    public static final String EXAM_KEY_PREFIX="E|";
    /** 案例信息，数据库案例信息 */
    public static final String EXAM_INFO_KEY_PREFIX="EI|";

    public static final String DESIGNER_USER_KEY_PREFIX ="D|";

    public static final String PRODUCT_KEY_PREFIX="PD|";

    public static final String ARTICLE_KEY_PREFIX="A|";

    /** 产品信息缓存 */
    public static final String PROMOTION_KEY_PREFIX="P|";
    
    /** 主活动信息 */
    @Deprecated
    public static final String PROMOTION_MAIN_KEY_PREFIX="PM|";
    /***主活动更新缓存集hash**/
    public static final String PROMOTION_MAIN_HASH_KEY_PREFIX="PMS";
    /****直播间日志hash列表***/
    public static final String LIVE_ROOM_LOG_HASH_KEY_PREFIX="LIVELOG";
    /****直播间日志列表***/
    public static final String PROMOTION_MAIN_LOG_KEY_PREFIX="PMLOG|";
    
    /** 拼团界面查询缓存 */
    public static final String PROMOTION_MAIN_QUERY_KEY_PREFIX="PMQ|";
    /** 活动自定义综合页查询诸多东信息缓存， */
    public static final String PROMOTION_MAIN_USER_KEY_PREFIX="PMU|";
    /** 活动统计缓存信息 */
    public static final String PROMOTION_VISIT_DATA_KEY_PREFIX="PVD|";
    
    /** 案列查询集合，参数通过MD5获取key */
    public static final String ITEM_EXAM_LIST_MD5_KEY = "IEDK|";
    /** 产品查询集合，参数通过MD5获取key */
    public static final String ITEM_PRODUCT_LIST_MD5_KEY = "IPDK|";
    
    /******** 已废弃缓存，请不要再次调用 *********/
    /** 领卷信息 */
    @Deprecated
    public static final String PROMOTION_TICKET_INFO_KEY_PREFIX="PTI|";
    /** 抵扣卷 */
    @Deprecated
    public static final String PROMOTION_TICKET_KEY_PREFIX="PT|";
    @Deprecated
    public static final String PROMOTION_GIFT_KEY_PREFIX="PG|";//抽奖
    @Deprecated
    public static final String PROMOTION_MS_KEY_PREFIX="MS|";//秒杀
    @Deprecated
    public static final String PROMOTION_MS_PRODUCT_KEY_PREFIX="MSP|";//秒杀商品
    /******** 已废弃缓存，请不要再次调用 *********/
    
    public static final String PROMOTION_GET_GIFT_KEY_PREFIX="PGG|";

    public static final String PROMOTION_TUAN_KEY_PREFIX="PTN|";

    public static final String SHOP_KEY_PREFIX="SP|";
    public static final String SHOP_BALANCE_KEY_PREFIX="SB|";

    public static final String SMS_VERIFY_KEY_PREFIX="SV|";

    /** user_info表redis缓存前缀 */
    public static final String USER_INFO_PREFIX="U|";

    public static final String MINIAPP_KEY_PREFIX="M|";
    /** shopId关联MINIAPP信息缓存 */
    public static final String MINIAPP_SHOP_KEY_PREFIX="M1|";

    public static final String EXAM_HOME_PREFIX="HE|";

    public static final String COLLECT_PREFIX="C|";
    //日志
    public static final String LOG_MQ_PREFIX="LOGMQ|";
    //锁
    public static final String REDIS_LOCK_PREFIX="L|";

    public static final String REDIS_ID_PREFIX="ID|";

    public static final String WEB_SOCKET_PREFIX="W|";
    //微信小程序token
    public static final String ACCESS_TOKEN_PREFIX="AN|";

    public static final String QUEUE_PAY_ORDER_KEY="queue_pay_order_key";

    public static final String ITEM_INFO_KEY="IO|";
    
    public static final String ITEM_STRATEGY_COLUMN_KEY="ISC|";

    public static final double BALANCE_LIMIT= 10d;

    public static final BigDecimal BALANCE_LIMIT_MONEY= BigDecimal.TEN;

    public static final String QUEUE_PROCESS_IMAGE_KEY="queue_process_image_key";

    public static final String QUEUE_LOGOUT_KEY="queue_logout_key";
    //计算红包生成浮动互补key
    public static final String CASH_PACK_ALG_FLOAT_KEY="CF|";

    public static final String PROMOTION_AVG="PA|";

    public static final String QUEUE_SEND_MESSAGE_KEY="queue_send_message_key";
    //天猫商品入库队列
    public static final String QUEUE_IMPORT_TMALL_PRODUCT_KEY="queue_import_tmall_product_key";

    public static final String ROLE_KEY="R|";

}
